package com.wangjiyuan.shiwupai.mine.activitiy;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.wangjiyuan.shiwupai.R;
import com.wangjiyuan.shiwupai.base.BaseActivity;

public class UploadFoodActivity extends BaseActivity {

    private Toolbar toolBar_uploadFood_item;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_upload_food);

        initToolBar();
    }

    private void initToolBar() {
        toolBar_uploadFood_item = (Toolbar) findViewById(R.id.toolBar_uploadFood_item);
        toolBar_uploadFood_item.setTitle("上传食物");
        toolBar_uploadFood_item.setNavigationIcon(R.mipmap.icon_back_black);

        toolBar_uploadFood_item.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
